//
//  Exi+UITabBarButton.swift
//  SinaCaoliang
//
//  Created by 曹亮 on 16/10/22.
//  Copyright © 2016年 曹亮. All rights reserved.
//

import UIKit

extension UIBarButtonItem{

    convenience init(setImgName:String? = nil, backgroundImgName:String? = nil, title:String? = nil, titleColor:UIColor? = nil, target :Any? = nil ,action:Selector? = nil) {

        self.init()


        let button = UIButton(setImgName: setImgName , backgroundImgName: backgroundImgName, title: title, titleColor:titleColor, target: target, action: action)

        self.customView = button
    }
    
    
}

